﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace VaccineEbook.Models
{
    public class ChapterModel
    {
        public class ChapterMenuModel
        {

            public int? ID { get; set; }

            public string ChapterGroup { get; set; }

            public int? Page { get; set; }

            public int? ChapterID { get; set; }
        }

        public class EditChapterModel
        {
            public int ChapterID { get; set; }

            public int ID { get; set; }

            public string Icon { get; set; }

            [Required(ErrorMessage="Chappter Group not null", AllowEmptyStrings=false)]
            [Display(Name="Chappter Group")]
            public string ChapterGroup { get; set; }

            [AllowHtml]
            //[Required(ErrorMessage = "Chappter Content not null", AllowEmptyStrings = false)]
            [Display(Name = "Chappter Content")]
            public string ChapterContent { get; set; }

            [AllowHtml]
            //[Required(ErrorMessage = "Chappter Description not null", AllowEmptyStrings = false)]
            [Display(Name = "Chappter Description")]
            public string ChapterDescription { get; set; }

            [Required(ErrorMessage="Required")]
            public int? Page { get; set; }

        }
    }
}